<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/main.css" />
		<link rel="stylesheet" type="text/css" href="css/mui.picker.css" />
		<link rel="stylesheet" type="text/css" href="css/mui.poppicker.css" />
	</head>

	<body>
		<div class="mui-content address">
			<div class="mui-row">
				<div class="mui-col-xs-12">
					<input type="text" class="mui-input-clear" placeholder="联系人姓名">
				</div>
				<div class="mui-col-xs-12">
					<input type="text" class="mui-input-clear" placeholder="手机号码">
				</div>
				<div class="mui-col-xs-12 mui-navigate-right">
					<input type="text" class="mui-input-clear " placeholder="所在地区" id='showCityPicker3'>
				</div>
				<div class="mui-col-xs-12">
					<br>
					详细地址:
					<textarea>
					</textarea>
				</div>
				<div class="mui-col-xs-12 address_default">
					设为默认地址
					<div class="mui-switch mui-switch-mini mui-active">
						<div class="mui-switch-handle"></div>
					</div>
				</div>
				<button class="address_send" onclick="routerto()">保存</button>
			</div>
		</div>
		<script src="js/mui.js"></script>
		<script src="js/mui.picker.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/mui.poppicker.js" type="text/javascript" charset="utf-8"></script>
		<!-- <script src="js/city.data.js" type="text/javascript" charset="utf-8"></script> -->
		<script src="js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui('body').on('tap','a',function(){
			          window.top.location.href=this.href;
			   });
			(function($, doc) {
				$.init();
				var _getParam = function(obj, param) {
					return obj[param] || '';
				};
				$.ready(function() {
					var cityPicker3 = new $.PopPicker({
						layer: 3
					});
					cityPicker3.setData(cityData3);
					var showCityPickerButton = doc.getElementById('showCityPicker3');
					showCityPickerButton.addEventListener('tap', function(event) {
						cityPicker3.show(function(items) {
							showCityPickerButton.value = _getParam(items[0], 'text') + " " + _getParam(items[1], 'text') + " " +
								_getParam(items[2], 'text');
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
				});
			})(mui, document);

			function routerto() {
				window.location.href = 'addresslist.html'
			}
		</script>
	</body>

</html>
